package com.java.lrw.service;

import java.util.List;
import java.util.Set;

import com.java.common.pojo.Dept;
import com.java.common.pojo.Emp;

public interface IDeptService {

	public boolean newDept(Dept dept);
	public boolean removeDept(String deptId);
	public boolean updateDept(Dept dept);
	public Dept getDept(String deptId);
	public Emp getEmp(String empId);
	public Dept getBelDept(Emp emp);
	public Set<Dept> getManDepts(Emp emp);
	public int getManDeptsCount(Emp emp);
	public List<Dept> getSubDeptsByCondition(String[] conditions,
			String orderBy, int start, int count);
	public List<Dept> getSubManDepts(Emp emp, String[] conditions,
			String orderBy, int start, int count);
	public int deptCount();
	public List<Dept> deptlist(final int start);
	
}
